import request from '@/utils/request';

/**
 * 获取智能电源实时状态
 */
export const GetDevRealTimeStatus = (params: any) => {
  return request({
    url: '/tyPowerSupply/getDevRealTimeStatus',
    params,
  });
};

/**
 * 设置传感器报警
 */
export const SetAlarm = (params: any) => {
  return request({
    url: '/tyPowerSupply/setAlarm',
    params,
  });
};

/**
 * 读取传感器报警
 */
export const GetAlarm = (params: any) => {
  return request({
    url: '/tyPowerSupply/getAlarm',
    params,
  });
};

/**
 * 设置获取太阳能控制器
 */
export const SetAlarmSolar = (params: any) => {
  return request({
    url: '/tyPowerSupply/setAlarmSolar',
    params,
  });
};

/**
 * 读取获取太阳能控制器
 */
export const GetAlarmSolar = (params: any) => {
  return request({
    url: '/tyPowerSupply/getAlarmSolar',
    params,
  });
};

/**
 * 设置充电优先级
 * @param 0.交流充电优先 1.太阳能充电优先 2.交流旁路 3.太阳能旁路
 */
export const SetChargePriority = (params: any) => {
  return request({
    url: '/tyPowerSupply/setChargePriority',
    params,
  });
};

/**
 * 读取充电优先级
 */
export const GetChargePriority = (params: any) => {
  return request({
    url: '/tyPowerSupply/getChargePriority',
    params,
  });
};

/**
 * 设置网络信息
 */
export const SetDevNetworkInfo = (params: any) => {
  return request({
    url: '/tyPowerSupply/setDevNetworkInfo',
    params,
  });
};

/**
 * 读取网络信息
 */
export const GetDevNetworkInfo = (params: any) => {
  return request({
    url: '/tyPowerSupply/getDevNetworkInfo',
    params,
  });
};

/**
 * 设置设备序列号
 */
export const SetDevNumber = (params: any) => {
  return request({
    url: '/tyPowerSupply/setDevNumber',
    params,
  });
};

/**
 * 读取设备序列号
 */
export const GetDevNumber = (params: any) => {
  return request({
    url: '/tyPowerSupply/getDevNumber',
    params,
  });
};

/**
 * 设置负载类型
 */
export const SetLoadType = (params: any) => {
  return request({
    url: '/tyPowerSupply/setLoadType',
    params,
  });
};

/**
 * 读取负载类型
 */
export const GetLoadType = (params: any) => {
  return request({
    url: '/tyPowerSupply/getLoadType',
    params,
  });
};

/**
 * 设置本地时间
 */
export const SetLocalTime = (params: any) => {
  return request({
    url: '/tyPowerSupply/setLocalTime',
    params,
  });
};

/**
 * 读取本地时间
 */
export const GetLocalTime = (params: any) => {
  return request({
    url: '/tyPowerSupply/getLocalTime',
    params,
  });
};

/**
 * 设置mac
 */
export const SetMac = (params: any) => {
  return request({
    url: '/tyPowerSupply/setMac',
    params,
  });
};

/**
 * 读取mac
 */
export const GetMac = (params: any) => {
  return request({
    url: '/tyPowerSupply/getMac',
    params,
  });
};

/**
 * 设置NTP服务器IP
 */
export const SetNTPServerAddr = (params: any) => {
  return request({
    url: '/tyPowerSupply/setNTPServerAddr',
    params,
  });
};

/**
 * 读取NTP服务器IP
 */
export const GetNTPServerAddr = (params: any) => {
  return request({
    url: '/tyPowerSupply/getNTPServerAddr',
    params,
  });
};

/**
 * 设置充电报警
 */
export const SetChargeAlarm = (params: any) => {
  return request({
    url: '/tyPowerSupply/setChargeAlarm',
    params,
  });
};

/**
 * 读取充电报警
 */
export const GetChargeAlarm = (params: any) => {
  return request({
    url: '/tyPowerSupply/getChargeAlarm',
    params,
  });
};

/**
 * 设置温度报警
 */
export const SetOverTempEquit = (params: any) => {
  return request({
    url: '/tyPowerSupply/setOverTempEquit',
    params,
  });
};

/**
 * 读取温度报警
 */
export const GetOverTempEquit = (params: any) => {
  return request({
    url: '/tyPowerSupply/getOverTempEquit',
    params,
  });
};

/**
 * 设置传感器报警电平
 */
export const SetSenSorPolarity = (params: any) => {
  return request({
    url: '/tyPowerSupply/setSenSorPolarity',
    params,
  });
};

/**
 * 读取传感器报警电平
 */
export const GetSenSorPolarity = (params: any) => {
  return request({
    url: '/tyPowerSupply/getSenSorPolarity',
    params,
  });
};

/**
 * 设置传感器所接位置
 */
export const SetSensorLocation = (params: any) => {
  return request({
    url: '/tyPowerSupply/setSensorLocation',
    params,
  });
};

/**
 * 读取传感器所接位置
 */
export const GetSensorLocation = (params: any) => {
  return request({
    url: '/tyPowerSupply/getSensorLocation',
    params,
  });
};

/**
 * 设置流服务器IP和端口,用户和密码
 */
export const SetRegisterServerAddr = (params: any) => {
  return request({
    url: '/tyPowerSupply/setRegisterServerAddr',
    params,
  });
};

/**
 * 读取流服务器IP和端口,用户和密码
 */
export const GetRegisterServerAddr = (params: any) => {
  return request({
    url: '/tyPowerSupply/getRegisterServerAddr',
    params,
  });
};

/**
 * 设置声音报警(蜂鸣器)
 */
export const StBuzzerEnable = (params: any) => {
  return request({
    url: '/tyPowerSupply/stBuzzerEnable',
    params,
  });
};

/**
 * 读取声音报警(蜂鸣器)
 */
export const GetBuzzerEnable = (params: any) => {
  return request({
    url: '/tyPowerSupply/getBuzzerEnable',
    params,
  });
};

/**
 * 设置负载报警 过流负载
 */
export const SetOverCurrentLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/setOverCurrentLoad',
    params,
  });
};

/**
 * 读取负载报警 过流负载
 */
export const GetOverCurrentLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/getOverCurrentLoad',
    params,
  });
};

/**
 * 设置负载报警 过压负载
 */
export const SetOverVoltageLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/setOverVoltageLoad',
    params,
  });
};

/**
 * 读取负载报警 过压负载
 */
export const GetOverVoltageLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/getOverVoltageLoad',
    params,
  });
};

/**
 * 设置负载报警 欠压负载
 */
export const SetUnderVoltageLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/setUnderVoltageLoad',
    params,
  });
};

/**
 * 读取负载报警 欠压负载
 */
export const GetUnderVoltageLoad = (params: any) => {
  return request({
    url: '/tyPowerSupply/getUnderVoltageLoad',
    params,
  });
};

/**
 * 立即授时
 */
export const StrikeNtp = (params: any) => {
  return request({
    url: '/tyPowerSupply/strikeNtp',
    params,
  });
};
